// import Mock from 'mockjs'

var tableNames = {
  'tableNamesCH': ['用户', '肿瘤'],
  'tableNamesEN': ['xlsx_user', 'xlsx_tumor']
}
var userList = {
  'tableCell': [{'用户名': '小明', 'xxx': 'xxx', 'xx': 'xx'}, {'用户名': '小李', 'xxx': 'x但丁xx', 'xx': 'xx阿斯顿'}, {'用户名': '阿斯顿', 'xxx': 'xxx闻气味', 'xx': 'x萨嘎x'}],
  'totalCount': 4,
  'currentPage': 1,
  'pageSize': 10}

var userListC = [
  {
    'tableName': '学生表',
    'tableCell': [
      {'用户名': '小明', 'xxx': 'xxx', 'xx': 'xx'},
      {'用户名': '小李', 'xxx': 'x但丁xx', 'xx': 'xx阿斯顿'},
      {'用户名': '阿斯顿', 'xxx': 'xxx闻气味', 'xx': 'x萨嘎x'},
      {'用户名': '小明', 'xxx': 'xxx', 'xx': 'xx'},
      {'用户名': '小12李', 'xxx': 'x2但丁xx', 'xx': 'xx阿斯顿'},
      {'用户名': '阿5斯顿', 'xxx': 'xxx闻气味', 'xx': 'x萨嘎x'},
      {'用户名': '小52明', 'xxx': 'xxx', 'xx': 'xx'},
      {'用户名': '小5李', 'xxx': 'x但丁xx', 'xx': 'xx阿斯顿'},
      {'用户名': '阿2斯顿', 'xxx': 'xxx闻气味', 'xx': 'x萨嘎x'},
      {'用户名': '小5明', 'xxx': 'xxx', 'xx': 'xx'},
      {'用户名': '小5李', 'xxx': 'x但丁xx', 'xx': 'xx阿斯顿'},
      {'用户名': '阿6斯顿', 'xxx': 'xxx闻气味', 'xx': 'x萨嘎x'}
    ],
    'totalCount': 12,
    'currentPage': 1,
    'pageSize': 10
  },
  {
    'tableName': '用户表',
    'tableCell': [
    {'用户名': '小明', 'xxx': 'xxx', 'xx': 'xx'},
    {'用户名': '小李', 'xxx': 'x但丁xx', 'xx': 'xx阿斯顿'},
    {'用户名': '阿斯顿', 'xxx': 'xxx闻气味', 'xx': 'x萨嘎x'}
    ],
    'totalCount': 4,
    'currentPage': 1,
    'pageSize': 10
  }
]
// var conditionList = {
//
// }
export function formShow () {
  return {
    url: '/get/table/names',
    type: 'get',
    data: {
      code: 0,
      msg: 'success',
      data: tableNames
    }
  }
}
export function conditionS () {
  return {
    url: '/get/hms_common_condition/fields',
    type: 'get',
    data: {
      code: 0,
      msg: 'success',
      conditions: ['姓名', '突出一个脑瘫', '真的', '怪物', 'rasd']
    }
  }
}
export function conditionA () {
  return {
    url: '/get/hms_Chi_Eng/all/conditions',
    type: 'get',
    data: {
      code: 0,
      msg: 'success',
      conditions: ['姓名', '突出一个脑瘫', 'asd', '破防', '大阿斯顿', '冲参数', '怪啊', 'rasd阿2的', 'sadasd', '阿斯顿12d', '阿斯顿', '屁股']
    }
  }
}
export function formChange () {
  return {
    url: '/post/field',
    type: 'post',
    data: {
      code: 0,
      msg: 'success'
    }
  }
}
export function formItem () {
  return {
    url: '/get/hms_Chi_Eng/fields',
    type: 'get',
    data: {
      code: 0,
      msg: 'success',
      data: ['用户名', 'xxx', 'xx']
    }
  }
}
export function conditionSearch () {
  return {
    url: '/get/condition/tables',
    type: 'get',
    data: {
      code: 0,
      msg: 'succes',
      data: userListC
    }
  }
}
export function getList () {
  return {
    url: '/get/table/data',
    type: 'get',
    data: {
      code: 0,
      msg: 'succes',
      data: userList
    }
  }
}
